import { createRouter, createWebHistory } from 'vue-router';
import routes from "./routes"

const router = createRouter({
  //History路由模式
	history: createWebHistory(),
  routes,
  //每次路由跳转后手动使滚动条回到头部位置
 /*  scrollBehavior() {
    return { top: 0, left: 0}
  }, */
})

// 导出路由
export default router;